import java.util.LinkedList;
import java.util.Stack;

public class zhan {
    public static void main(String[] args) {
        Stack<Object> z = new Stack<>();
        LinkedList<Object> linkedList = new LinkedList<>();
        System.out.println(z.push(1));
        z.push(2);
        z.push(3);
        z.push(4);
        z.push(5);
        System.out.println(z.pop());
        System.out.println(z.pop());
        System.out.println(z.peek());
        System.out.println();
        System.out.println(z.search(3));
    }
}
